<include file="./Tm/Dt/Admin/Top.html" />

<include file="./Tm/Dt/Admin/Left.html" />


<div id="right">
    <include file="./Tm/Dt/Admin/Nav.html" />
    <!--主要内容块-->
    <script type="text/javascript" src="__PUBLIC__/Dt/lib/jedate/jedate.min.js" ></script>
    <div class="main">



        <div>
            <ul class="nav nav-tabs">
			  <li role="presentation" class="active"><a href="#">提供帮助匹配列表</a></li>
			</ul>
            <div class="panel-body">
                <div class="table-responsive">
                   <form id="form" name="form" action="/admin/index/dodpipei" method="post">
                   <p>匹配订单号：{$data.orderid} 匹配额度：<if condition='$data.surplus gt 0'>{$data.surplus}<else/>{$data.price}</if><br><br> </p>
                    <table class="table">
                        <tr>
                            <th>选择</th>
                            <th>订单号</th>
                            <th>会员名</th>
                            <th>姓名</th>
                            <th>匹配人数</th>
                            <th>金额</th>
                            <th>剩余金额</th>
                            <th>时间</th>
                            <th>状态</th>

                        </tr>
                        <if condition="count($room) eq 0">
                            <tr><td colspan="9">没有可匹配的订单，我要
                                <if condition="$t eq 1">
                                   <a href="/admin/index/tpipei.html">拆单</a>。
                                <else />
                                   <a href="/admin/index/gpipei.html">拆单</a>。
                                </if></td> </tr>

                       <else />
                            <volist name="room" id="vo">
                                <tr>
                                    <td><input type="checkbox" name="subid[]" value="{$vo.id}"></td>
                                    <td>{$vo.orderid}</td>
                                    <td>{$vo.username}</td>
                                    <td>{$vo.realname}</td>
                                    <td>{$vo.number}</td>
                                    <td>{$vo.price}</td>
                                    <td>{$vo.surplus}</td>
                                    <td>
                                        {$vo.createtime|date="Y-m-d H:i:s",###}
                                    </td>
                                    <td> <switch name="vo.status">
                                        <case value="0">排队中，等待匹配</case>
                                        <case value="1">匹配完成，等待打款</case>
                                        <case value="2">打款完成，等待确认</case>
                                        <case value="3">确认完成，成功提供帮助</case>

                                    </switch></td>


                                </tr>

                            </volist>
                        </if>

                    </table>

                    <div class="caozuo">
                        <!--<label class="checkbox-inline">-->
                            <!--<input type="checkbox" id="inlineCheckbox1" value="option1"> 全选-->
                        <!--</label>-->
                        <input type="hidden" id="id" name="id" value="{$data.id}">
                        <input type="hidden" id="t" name="t" value="{$t}">
                        <input type="hidden" id="o" name="o" value="{$o}">
                        <input  type="submit" class="btn btn-default" id="submit" name="submit" onclick="return Check()" value="匹配">
                        <input  type="button" class="btn btn-default" id="button" name="button" onclick="javascript:history.go(-1);" value="返回">
                    </div>
                   </form>
                    <include file="./Tm/Dt/Page.html" />
                </div>
            </div>
        </div>
    </div>
</div>

						<script>
							$("#shijian").find("a").click(function(){
//								alert($("#shijian").find("a").length)
								var zt = $(this).parent().parent().next().find("div").css("display")
								if (zt == "none") {
									$(this).parent().parent().next().find("div").slideDown().parent().css("padding","8");
								} else{
									$(this).parent().parent().next().find("div").slideUp().parent().css("padding","0");
								}
							})
						</script>
<include file="./Tm/Dt/Admin/Foot.html" />

<script src="__PUBLIC__/Admin/js/dpipei.js" type="text/javascript" charset="utf-8"></script>